package com.aliwo.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import tech.powerjob.common.request.http.SaveJobInfoRequest;

/**
 * @author:xuyayuan
 * @date:2021/7/21 21:38
 * @description:TODO
 */
@Data
@ApiModel(value = "HttpAPI创建任务请求对象", description = "HttpAPI 创建任务请求对象")
public class SaveHttpJobInfoRequest extends SaveJobInfoRequest {
    @ApiModelProperty(value = "请求地址", example = "www.baidu.com", required = true)
    private String url;
    @ApiModelProperty(value = "请求方式", example = "GET / POST / DELETE / PUT", required = true)
    private String method;
    @ApiModelProperty(value = "使用非 GET 请求时，需要传递的数据类型", example = "application/json")
    private String mediaType;
    @ApiModelProperty(value = "使用非 GET 请求时的 body 内容，后端使用 String 接收", example = "xx")
    private String body;
    @ApiModelProperty(value = "请求头，后端使用 Map<String, String> 接收", example = "xxx")
    private String headers;

}
